home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / moretime.zip / MORETIME.DOC < prev    next >
Text File  |  1991-12-18  |  5KB  |  115 lines

  1. MoreTime v1.0 - 12/18/91
  2. -----------------------------------------------------------------------------
  3.  
  4. This was created to answer the needs of the following:
  5.  
  6.    Here's the need:
  7.  
  8.         A door called MORETIME to allow certain new users to enter a
  9. specific password (which they will know in advance) and raise the
  10. amount of time and bytes they are allowed.
  11.  
  12.    Here's the scenario:
  13.  
  14.         The average new user is allowed to download 50K and has a 30
  15. min/day time limit.  Some special folks need to call into the BBS and
  16. download a 100K file and need more time to do it in.  They can't take
  17. the time to use the regular VERIFY door to raise their access, since
  18. they are calling long distance, so they've called me in advance to ask
  19. me how to log on to my BBS and download the file they need.  Once they
  20. log on as a completely new user, and get to the main board, they enter
  21. MORETIME and are prompted for a password.  Since I've already spoken
  22. to them and given them the special password, they enter that.  The
  23. door writes to PCBOARD.SYS and gives them 90 minutes per day and
  24. unlimited access to the files (or simply raises their security level).
  25.  
  26.    Here's the question:
  27.  
  28.         Does such a door already exist, or would someone with some
  29. programming expertise like to take a swing at it?
  30.  
  31.         I've read DEVELOP.SYS and while the programming logic is
  32. pretty obvious to me, the technique for writing it is beyond my
  33. present level of experience.  Any comments would be appreciated.
  34. -----------------------------------------------------------------------------
  35.  
  36. Here's a simple program to do the job.
  37.  
  38. Setup the door with PCBSETUP and install a PASSWORD if that fits your
  39. needs. For fastest access, use the SHELL method (no swap needed) and
  40. leave USERS.SYS & DOOR.SYS set to NO.
  41.  
  42. The door file should look like this:
  43.  
  44. MORETIME %PCBDRIVE%%PCBDIR%PCBOARD.SYS
  45.  
  46. or
  47.  
  48. CD \MORETIME
  49. MORETIME %PCBDRIVE%%PCBDIR%PCBOARD.SYS
  50. COPY PCBDOOR.TXT %PCBDIR%
  51. CD %PCBDIR%
  52.  
  53.  
  54. This should work for multiple nodes just fine. (note: you can not use
  55. the swap option in the door as the %PCBDRIVE% & %PCBDIR% variables will
  56. not be present (unless you are settiing them manually in your BOARD.BAT
  57. file.)
  58.  
  59. The file MORETIME.EXE should be located in the path or current directory
  60. and the file MORETIME.CFG must be in the current path or change the batch
  61. file to change to the directory before running MORETIME as in example 2.
  62.  
  63. The MORETIME.CFG file should contain the following 5 lines
  64.  
  65. MORETIME.DAT
  66. MORETIME.BAD
  67. MORETIME.ADD
  68. PCBDOOR.TXT
  69. 60
  70.  
  71. Line 1:Drive:Path\FileName of the User Data base of Users who have used the door
  72. Line 2:Drive:Path\FileName of the text to display if a User has already accessed
  73.        the Door and is refused access again.
  74. Line 3:Drive:Path\FileName of the text to display if a User is granted the
  75.        additional time.
  76. Line 4:Drive:Path\FileName of the text file to copy the file(s) from Line 2 or
  77.        Line 3 to.
  78. Line 5:The Amount of additional Time to be granted.
  79.  
  80. You may 'CLEAR' the database at any time (like in an event) to allow users to
  81. reaccess the door another day, or just leave it going to allow a single access
  82. to the door. You can leave the line blank if you don't want to limit use of the
  83. door. The use of the door multiple times in a single call will do the user no
  84. good as time is granted by setting the CreditTime value to the amount set in
  85. line 5. Setting this value more than once does the user no good. To 'CLEAR'
  86. the database, do not delete the file, but set it to ZERO BYTES by doing a
  87.  
  88. REM > MORETIME.DAT
  89.  
  90. If the file does not exist at all, then the program will not work right. Before
  91. opening the file, the existence of the file is checked for to avoid errors in
  92. BASIC.
  93.  
  94. Files are not opened in share mode but as the program is going to run so fast,
  95. it should not present any problems as multiple users would have to try to run
  96. the door at the exact same moment.
  97.  
  98. The program returns the following ErrorLevel codes.
  99.  
  100. 20 = The Config file MORETIME.CFG could not be found.
  101. 10 = The PCBOARD.SYS fie specified on the Command Line could not be found.
  102.  1 = The User was not granted more time due to being found in database file.
  103.  0 = The User was granted the additional time.
  104.  
  105. The file was compiled with PDQ for small size and fast operation. The source is
  106. included (although unless you have Crescent's QuickPack Professional libraries
  107. you won't be able to compile it without changing the references to the 3
  108. routines I used from the Library.
  109.  
  110. If you have any questions, give me a call at my BBS
  111.  
  112. SHARP Technical Support Line BBS - (404) 962-1788  - ATI 9600 etc/E V.32
  113.  
  114. Gary Meeker
  115.